package com.android.exchangeapp

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity

/**
 * Created by Matt on 2023/9/25.
 **/
class SplashActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        if (!isTaskRoot) {
            intent?.let {
                if (it.hasCategory(Intent.CATEGORY_LAUNCHER) && Intent.ACTION_MAIN == it.action) {
                    finish()
                    return
                }
            }
        }
        super.onCreate(savedInstanceState)
        PageManager.jumpPage(this)
    }
}